#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QWidget>
#include <QThreadPool>

#include "controlwidget.h"
#include "progresswidget.h"
#include "shell.h"

class MainWindow : public QWidget
{
    Q_OBJECT

    QThreadPool m_thread_pool;
    Shell *m_shell;
    ControlWidget *m_control;
    ProgressWidget *m_progress;

public:
    explicit MainWindow(int books = 100, int timeout = 1, int readers = 10, int writers = 10, QWidget *parent = 0);
};

#endif // MAINWINDOW_H
